package com.jwgf.objectbox;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

@Entity
public class HeadFaultCounter {
    @Id
    public long id;
    public long start;
    public long end;
    // machine fault counter
    public int counter_252_1;
    public int counter_252_2;
    public int counter_252_4;
    public int counter_252_6;
    public int counter_252_7;
    public int counter_252_8;
    public int counter_252_9;
    public int counter_252_10;
    public int counter_252_11;
    public int counter_252_12;
    public int counter_252_13;
    public int counter_252_14;

    public int counter_254_0;
    public int counter_254_1;
    public int counter_254_2;
    public int counter_254_8;
    public int counter_254_9;
    public int counter_254_10;
    public int counter_254_11;
    public int counter_254_12;
    public int counter_254_13;
    public int counter_254_14;
    public int counter_254_15;

    public int getTotalCount() {
        int count = counter_252_1 + counter_252_2 + counter_252_4 + counter_252_6
                + counter_252_7 + counter_252_8
                + counter_252_9 + counter_252_10 + counter_252_11 + counter_252_12
                + counter_252_13 + counter_252_14
                + counter_254_0 + counter_254_1 + counter_254_2
                + counter_254_8 + counter_254_9
                + counter_254_10 + counter_254_11 + counter_254_12 + counter_254_13
                + counter_254_14 + counter_254_15;
        return count;
    }
}
